package pub.developers.forum.infrastructure.dal.dao;

import org.apache.ibatis.annotations.Param;

public interface CommentFollowDAO {

    //给评论点赞 即 插入点赞信息
    /*
    Long followed : 被点赞的评论的id
     Long follower : 给评论点赞的用户id
     */
    void insertFollowCommentInformation(@Param("followed") Long followed , @Param("follower") Long follower);

    //给评论取消点赞 , 把点赞数据从表中删除
    /*
    Long followed : 被点赞的评论的id
     Long follower : 给评论点赞的用户id
     */
    void deleteFollowCommentInformation(@Param("follower") Long follower , @Param("followed") Long followed);

    Long[] selectCommentFollower(Long commentID);

}
